from django.contrib import admin
from .models import GoodsDetail


@admin.register(GoodsDetail)
class GoodsDetailAdmin(admin.ModelAdmin):
    list_per_page = 5
    list_display = ['goods_name', 'goods_price', 'goods_img', 'goods_num', 'goods_unit', 'goods_order']
    actions_on_top = True
    list_filter = ['goods_name']
    search_fields = ['goods_name']
